﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Content.Master" AutoEventWireup="true"
    CodeBehind="InBox.aspx.cs" Inherits="RED_NET.ContentPage.InBox" Title="无标题页"   ValidateRequest="false"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
<div align="center">
<link rel="Stylesheet" type="text/css" href="../../Image_Css/NewsCss/InBox.css" />
<br />
   <asp:LinkButton ID="LinkButton_Sendletter" runat="server" 
        PostBackUrl="~/ContentPage/News/SendLetter.aspx" BackColor="Silver" 
        BorderColor="Silver" BorderStyle="Solid">写站内信</asp:LinkButton>
 &nbsp;
    <asp:LinkButton ID="LinkButton_Inbox" runat="server" 
        PostBackUrl="~/ContentPage/News/InBox.aspx" BackColor="Silver" 
        BorderColor="Silver" BorderStyle="Solid">收件箱</asp:LinkButton>
&nbsp;
    <asp:LinkButton ID="LinkButton_Sendbox" runat="server" 
        PostBackUrl="~/ContentPage/News/SendBox.aspx" BackColor="Silver" 
        BorderColor="Silver" BorderStyle="Solid">发件箱</asp:LinkButton>

    <hr style="color: "White" />
    <br />
       <hr id="hr2"/>
    <br />
    <asp:Label ID="Label_NULL" runat="server" Text="暂无邮件！！" ForeColor="White" Font-Size="Larger" Visible="false"></asp:Label>
     <br />
    <div>
    
 
        <asp:GridView ID="GridView_Letter" runat="server" AutoGenerateColumns="False" OnPageIndexChanging="GridView_Letter_PageIndexChanging"
            OnRowCreated="GridView_Letter_RowCreated" AllowPaging="true" PagerSettings-Mode="Numeric"
            OnRowCommand="GridView_Letter_RowCommand" AutoGenerateDeleteButton="False" AlternatingRowStyle-Wrap="False"
            ShowHeader="false" Width="85%" GridLines="None">
            <Columns>
                <asp:TemplateField >
                    <ItemTemplate>
                  <br />
                        <table id="tb">
                            <tr>
                                <td id="td1">
                                    <asp:Image ID="avatar" runat="server" Height="60px"  Width="60px" ImageUrl='<%#Eval("_AvatarUrl")%>' />
                                    <br />
                                    <asp:Label ID="Label_NickName" runat="server" Text='<%#Eval("_NickName")%>'></asp:Label>
                                </td>
                                <td id="td2">
                                    <asp:LinkButton ID="LinkButton_Title" runat="server" Text='<%#Eval("_Title")%>'
                                        PostBackUrl='<%#"ShowLetter.aspx?VISIT_ID="+Eval("_UIdOfRecv")+"&_NewsId="+Eval("_NewsId")+"&_Id="+Eval("_Id")%>'></asp:LinkButton>
                                </td>
                                <td id="td3">
                                    <asp:Label ID="Label_AddTime" runat="server" Text='<%#Eval("_AddTime")%>'></asp:Label>
                                </td>
                                <td id="td4">
                                    <asp:Label ID="Label_IsRead" runat="server" Text='<%#Eval("_IsRead")%>'></asp:Label>
                                </td>
                            <td id="td4">
                                    <asp:LinkButton ID="LinkButton_Delete" Text="删除" CommandName="delete" runat="server"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                        <br />
                          <hr id="hr1"/>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="_Id" />
                <asp:BoundField DataField="_UserName" />
            </Columns>
        </asp:GridView>
    </div>
    <br />
    <br />
    <hr style="color: White" />
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
</asp:Content>
